package heima3_2.cn.osc.ui.main_fragment.synthesize_particulars_fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;

import net.oschina.app.R;

import butterknife.Bind;
import butterknife.ButterKnife;
import heima3_2.cn.osc.base.BaseFragment;
import heima3_2.cn.osc.constant.ResultState;
import heima3_2.cn.osc.presenter.synthesize_particulars_presenter.RecommendParticularsPresenter;

/**
 * Created by Administrator on 2017/1/17 0017.
 */

public class RecommendParticularsFragment extends BaseFragment {
    @Bind(R.id.wv_particulars)
    public WebView mWvParticulars;
    private View view;
    private RecommendParticularsPresenter mRecommendParticularsPresenter;

    @Override
    protected ResultState onLoadSubData() {
        mRecommendParticularsPresenter = new RecommendParticularsPresenter(getActivity(),this);
        mRecommendParticularsPresenter.getData(0);
        return ResultState.LOAD_SUCCESS;
    }

    @Override
    protected View onCreateSubSuccessView(LayoutInflater inflater, ViewGroup container) {
        view = inflater.inflate(R.layout.fragment_synthesis_webview,container,false);
        ButterKnife.bind(this, view);
        return view;
    }
    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }
}
